export default request => ({
  /**   请求附表数据 */
  saveCloudFn: data => request({
    url: '/onlcode/lowcode/pageFunction/saveOrUpdateFunction',
    method: 'post',
    data
  }),
  queryFnByPage: data => request({
    url: `/onlcode/lowcode/pageFunction/queryByPage?pageNo=${data.pageNo}&pageSize=${data.pageSize}`,
    method: 'post',
    data
  }),
  deleteFnById: params => request({
    url: '/onlcode/lowcode/pageFunction/deleteFunction',
    method: 'get',
    params
  }),
  getFnById: params => request({
    url: '/onlcode/lowcode/pageFunction/getById',
    method: 'get',
    params
  }),
  generateFunctionFile: data => request({
    url: '/onlcode/lowcode/pageFunction/generateFunctionFile',
    method: 'post',
    data
  }),
  getFnModule: params => request({
    url: '/onlcode/lowcode/pageFunction/queryFunctionModelList',
    method: 'get',
    params
  }),
})
